﻿<phone:PhoneApplicationPage
    x:Class="VoiceControl.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <shell:SystemTray.ProgressIndicator>
        <shell:ProgressIndicator x:Name="LoadingBar" IsIndeterminate="True" Text="连接中..."/>
    </shell:SystemTray.ProgressIndicator>
    
    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition  Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar>
			<shell:ApplicationBarIconButton x:Name="BB_Login" IconUri="/Assets/AppBar/check.png" Text="登陆" Click="BB_Login_Click"/>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="#FFC1C1C1">
        <StackPanel>
            <Image Height="150" Source="20131017103743303_easyicon_net_128.png" HorizontalAlignment="Center" Margin="0,90,0,0"/>
            <TextBlock TextWrapping="Wrap" Foreground="Black" TextAlignment="Center" FontSize="32" Text="用户登陆"/>
            <TextBlock TextWrapping="Wrap" Text="用户名：" Foreground="Black" Width="400" Margin="0,35,0,0"/>
            <TextBox Height="72" TextWrapping="Wrap" Width="400" Text="yy"/>
            <TextBlock TextWrapping="Wrap" Text="密码：" Foreground="Black" Width="400"/>
            <PasswordBox Width="400" Password="123456"/>
            <CheckBox Content="自动登陆" HorizontalAlignment="Left" Margin="53,0,0,0" BorderBrush="Black" Foreground="Black" IsChecked="True"/>
            <StackPanel x:Name="LoadingPanel" Visibility="Collapsed">
                <TextBlock Text="加载中" HorizontalAlignment="Center" Foreground="Black"></TextBlock>
                <ProgressBar IsIndeterminate="True"/>
            </StackPanel>

        </StackPanel>

    </Grid>

</phone:PhoneApplicationPage>